import reg from '../utils/request.js'

export function login(params) {
  return reg.post('/users/checkLogin', params)
}

export function addUser(params) {
  return reg.post('/users/add', params)
}
export function checkOldPass(params) {
  return reg.get('/users/checkoldpwd', params)
}
export function editPass(params) {
  return reg.post('/users/editpwd', params)
}
export function getUserlist(params) {
  return reg.get('/users/list', params)
}
export function delUser(params) {
  return reg.get('/users/del', params)
}
export function deleteMore(params) {
  return reg.get('/users/batchdel', params)
}
export function editUser(params) {
  return reg.post('/users/edit', params)
}
export function getInfo(params) {
  return reg.get('/users/info', params)
}
export function editimg(params) {
  return reg.get('/users/avataredit', params)
}
